package com.fast.common.em;

/**
 * 登录类型
 */
public enum PlatformTypeEm {

    APP("1", "APP"),
    PC("2", "PC");


    public String code;

    public String message;

    PlatformTypeEm(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public PlatformTypeEm getCode(String code) {
        for (PlatformTypeEm var : values()) {
            if (var.code.equals(code)) {
                return var;
            }
        }
        return null;
    }

}
